using UnityEngine;
using System.Collections;

public class TakeMuliHits : MonoBehaviour {
	
	public int shotsToKill = 5;
	public int timesShot;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (timesShot >= shotsToKill) {
			Destroy( this.gameObject );	
		}
	}
}
